<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #f8f8f8;
            color: #333;
        }

        .container {
            max-width: 400px;
            margin: 0 auto;
            background-color: #fff;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        .header {
            background: url('./images/welcome.png') no-repeat center center;
            background-size: cover;
            width: 100%;
            height: 200px;
            position: relative;
        }

        .header .location {
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 14px;
            color: #666;
        }

        .header .welcome {
            position: absolute;
            bottom: 20px;
            left: 20px;
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }

        .search-bar {
            margin: 20px;
            display: flex;
            align-items: center;
            background: #f2f2f2;
            border-radius: 20px;
            padding: 10px 15px;
        }

        .search-bar input {
            border: none;
            background: none;
            flex: 1;
            font-size: 14px;
            outline: none;
        }

        .search-bar input::placeholder {
            color: #aaa;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            padding: 20px;
        }

        .grid-item {
            text-align: center;
        }

        .grid-item img {
            width: 50px;
            height: 50px;
            border-radius: 10px;
        }

        .grid-item span {
            display: block;
            margin-top: 5px;
            font-size: 12px;
            color: #666;
        }

        .banners {
            display: flex;
            gap: 10px;
            padding: 10px 20px;
        }

        .banner {
            flex: 1;
            background-color: #ffe9e6;
            border-radius: 10px;
            text-align: center;
            padding: 10px;
            font-size: 14px;
        }

        .banner:first-child {
            background-color: #ffe6f2;
        }

        .notice {
            background-color: #f8f8f8;
            padding: 10px 20px;
            font-size: 14px;
            color: #666;
        }

        .footer {
            display: flex;
            justify-content: space-between;
            padding: 10px 20px;
            border-top: 1px solid #eee;
            background-color: #fff;
            position: absolute;
            bottom: 0;
            width: 100%;
        }

        .footer-item {
            text-align: center;
            flex: 1;
            font-size: 12px;
            color: #666;
        }

        .footer-item.active {
            color: #f90;
        }

        #dingdan {
            color: #666;
            text-decoration: none;
        }

        #wode {
            color: #666;
            text-decoration: none;
        }

        .bigbox {
            width: 400px;
            height: auto;
            margin: auto;
        }

        #wanneng {
            color: #333;
            text-decoration: none;
        }

        .main-content {
            text-align: center;
            margin-top: 50px;
        }

        .main-content.hidden {
            display: none;
        }

        .empty-image {
            width: 150px;
            height: auto;
            margin-bottom: 20px;
        }

        .empty-text {
            font-size: 16px;
            color: #888;
            margin-bottom: 20px;
        }

        .btn {
            background: #ffa800;
            color: #fff;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="bigbox">
        <div class="container">
            <!-- Header -->
            <div class="header">
                <div class="location">
                    📍 成都东软学院
                </div>
                <div class="welcome"></div>
            </div>

            <!-- Search Bar -->
            <div class="search-bar">
                <input type="text" placeholder="搜索商家或商品">
            </div>

            <!-- Grid -->
            <div class="grid">
                <div class="grid-item">
                    <a href="waimai.html">
                        <img src="./images/meishiwaimai.png" alt="美食外卖">
                    </a>
                    <span>美食外卖</span>
                </div>
                <div class="grid-item">
                    <a href="chaoshibianli.html"><img src="./images/chaoshibianli.png" alt="超市便利"></a>
                    <span>超市便利</span>
                </div>
                <div class="grid-item">
                    <a href="tejia.html"><img src="./images/tiantiantejia.png" alt="天天特价"></a>
                    <span>天天特价</span>
                </div>
                <div class="grid-item">
                    <a href="chaojihuiyuan.html"><img src="./images/chaojihuiyuan.png" alt="超级会员"></a>
                    <span>超级会员</span>
                </div>
                <!-- Add more grid items as needed -->
            </div>

            <!-- Banners -->
            <div class="banners">
                <div class="banner">表白墙</div>
                <div class="banner"><a href="bangbang.html" id="wanneng">万能帮帮</a></div>
            </div>

            <!-- Notice -->
            <div class="notice">
                🔔 营业时间：10:30~14:00，16:00~22:00
            </div>

            <!-- Footer -->
            <div class="footer">
                <div class="footer-item active">首页</div>
                <div class="footer-item"><a href="dingdan.html" id="dingdan">订单</a></div>
                <div class="footer-item"><a href="wode.html" id="wode">我的</a></div>
            </div>
            <div class="main-content" id="store-content">
                <img src="images/wu.png" alt="空收藏" class="empty-image">
                <p class="empty-text">还没有商品~</p>
                <button class="btn">再去逛逛</button>
            </div>
        </div>
</body>

</html>